package day02;

public class IntegerTest {
	public static void main(String[] args) {
		Integer a = new Integer(1000);//Integer a = 1000;
		Integer b = new Integer(1000);//Integer b = 1000;
		System.out.println(a >= b);
		System.out.println(a <= b);
		System.out.println(a == b);//false
		System.out.println("equals " +a.equals(b));
		
		Integer x = 42;
		Integer y = 42;
		System.out.println(x >= y);
		System.out.println(y <= x);
		System.out.println(x == y);//true
		System.out.println("equals " +x.equals(y));
		//System.out.println("true or false " +geTryCatch());
	}
	//始终返回false
	//Java编程中比较诡异的情况，不报语法错误，始终返回false
	/*
	public static boolean geTryCatch() {
		try {
			return true;
		} catch (Exception e) {
			// TODO: handle exception
		} finally {
			return false;
		}
	}
	*/
}
